package think.in.spring.bean.postprocessor.service;

import think.in.spring.bean.postprocessor.annotation.ExecutionTime;

import java.util.concurrent.TimeUnit;

public class SampleService {
    @ExecutionTime(unit = TimeUnit.MILLISECONDS)
    public void processData() {
        // 模拟耗时操作
        try {
            Thread.sleep(1500);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
}
